import http from '@/utils/http'

/** 用户名检测 */
const $ChekcUsername = (data) => http.post(process.env.VUE_APP_FLAG + '/account/check', data)
/** 获取验证码 */
const $Send = (data) => http.post(process.env.VUE_APP_FLAG + '/send', data)
/** 用户注册 */
const $Register = (data) => http.post(process.env.VUE_APP_FLAG + '/account/register', data)
/** 用户登录 */
const $Login = (data) => http.post(process.env.VUE_APP_FLAG + '/account/login', data)

export {
  $ChekcUsername,
  $Send,
  $Register,
  $Login
}
